import {request} from '@/utils/request';

export const providerInfoDetail = <T>(data?:T) => {
    return request({
        url:"merchant/tkt/client/detail",
        method:"POST",
        data,
    });
};
export const providerInfoguide = <T>(data?:T) => {
    return request({
        url:"/merchant/tkt/client/guide",
        method:"POST",
        data,
    });
};


// 游客信息列表
export const touristList = <T>(data?:T) => {
    return request({
        url:"app/my/traveler/list",
        method:"POST",
        data,
    });
};

// 添加游客信息
export const addTourist = <T>(data?:T) => {
    return request({
        url:"app/my/traveler/add",
        method:"POST",
        data,
    });
};

// 更新游客信息
export const updateTourist = <T>(data?:T) => {
    return request({
        url:"app/my/traveler/update",
        method:"POST",
        data,
    });
};

// 删除游客信息
export const removeTourist = <T>(data?:T) => {
    return request({
        url:"app/my/traveler/remove",
        method:"POST",
        data,
    });
};

// 支付
export const toPay = <T>(data?:T) => {
    return request({
        url:"order/pay/wx/toPay",
        method:"POST",
        data,
    });
};


// 订单详情
export const orderDetail = <T>(data?:T) => {
  return request({
      url: "order/client/mall/orderDetails",
      method:"POST",
      data
  });
};


// 上传图片
export const uploadImg = <T>(data?:T) => {
    return request({
        url: "common/file/uploadBase64",
        method:"POST",
        data,
        isFormData: false
    });
};

// 订单列表
export const orderListApi = <T>(data?:T) => {
    return request({
        url: "order/client/query/page",
        method:"GET",
        data,
    });
}; 